package com.sunny.config;

import com.sohu.idcenter.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.atomic.AtomicBoolean;

@Configuration
public class BeansConfig {
    //爬虫运行状态
    public static AtomicBoolean crawlerRunningFlag = new AtomicBoolean(false);
    @Bean
    public IdWorker idWorker() {
        return new IdWorker();
    }
}
